$.getJSON("/api/get-background", function (res) {
    $("body").css("background", "url("+res.data+") no-repeat");
    $("body").css("background-position", "center 0");
    $("body").css("background-repeat", "no-repeat");
    $("body").css("background-attachment", "fixed");
    $("body").css("background-size", "cover");
    $("body").css("-webkit-background-size", "cover");

    /*
    background-position: center 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-background-size: cover;
    */
});


var silentAllPage = 0;
function reload() {
    if (document.title == "我的") {
        // 表格
        var $fileTableList = $("#fileTableList");
        // 当前页
        var $currentPage = $("#currentPage");
        // 总页数
        var $totalPage = $("#totalPage");
        // 总记录数
        var $totalCount = $("#totalCount");
        // 重载表单
        mineTableShow($fileTableList, $currentPage, $totalPage, $totalCount);
        // 重载：recentUpload
        reloadRecentUpload();
    }
    if (document.title == "文件系统首页") {
        // 表格
        var $fileTableList = $("#fileTableList");
        // 当前页
        var $currentPage = $("#currentPage");
        // 总页数
        var $totalPage = $("#totalPage");
        // 总记录数
        var $totalCount = $("#totalCount");
        // 重载表单
        tableShow($fileTableList, $currentPage, $totalPage, $totalCount);
        // 重载：recentUpload
        reloadRecentUpload();
    }
}